<!--
 * @Author: your name
 * @Date: 2021-08-17 14:13:42
 * @LastEditTime: 2021-08-17 14:45:44
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \昆山杰普实习基地\Mygit\呼吸灯\呼吸灯.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>呼吸灯</title>
    <style>
        html,body {
            margin: 0;
            padding: 0;
        }
        div {
            box-sizing: border-box;
        }
        .content{
            margin: 0 auto;
            width: 400px;
            height: 600px;
            background-color:rgb(0, 0, 0)
        }
        .content>.box{
            /* border: 1px solid tomato; */
            height: 400px;
            padding: 40px;
            animation-name: outer;
            animation-duration: 3s;
            animation-timing-function: linear;
            animation-iteration-count:infinite;
        }
        .content>.box>.outer{
            border: 4px solid rgb(247, 247, 247);
            padding: 20px;
            animation-name: inner;
            animation-duration: 3S;
            animation-timing-function: linear;
            animation-iteration-count:infinite;
        }
        .content>.box>.outer>.inner{
            border: 10px solid rgb(168, 168, 168);
        }
        .content .box .circle{
            border-radius: 50%;
            height: 100%;
            width: 100%;
        }

        @keyframes inner {
            25%{
              padding: 40px;   
            }
            75%{
              padding: 20px;   
            }
        }

        @keyframes outer {
            25%{
              padding: 30px;   
            }
            75%{
              padding: 40px;   
            }        
        }
    </style>
</head>
<body>
    <div class="content">
        <!-- 方形外框 -->
        <div class="box">
            <!-- 外圆 -->
            <div class="outer circle">
                <!-- 内园 -->
                <div class="inner circle">
                    
                </div>
            </div>
            <!-- 外缘end -->
        </div>
        <!-- 方形外框end -->
    </div>
</body>
</html>
